package com.codi.bus.core.dao.impl;

import com.codi.base.dao.BaseDAOImpl;
import com.codi.bus.core.dao.OrgFileBucketDao;
import com.codi.bus.core.domain.OrgFileBucket;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by wangzhenhao on 2017/9/7.
 */
@Repository
public class OrgFileBucketDaoImpl extends BaseDAOImpl<OrgFileBucket> implements OrgFileBucketDao{

    @Override
    public int deleteByPrimaryKey(Long bucketId) {
        return this.delete(generateStatement("deleteByPrimaryKey"), bucketId);
    }

    @Override
    public int insertSelective(OrgFileBucket record) {
        return this.insert(generateStatement("insertSelective"), record);
    }

    @Override
    public int updateByPrimaryKeySelective(OrgFileBucket record) {
        return this.update(generateStatement("updateByPrimaryKeySelective"), record);
    }

    @Override
    public List<OrgFileBucket> queryList() {
        return this.findList(generateStatement("queryList"));
    }

    @Override
    public OrgFileBucket selectByPrimaryKey(Long bucketId) {
        return this.getObject(generateStatement("selectByPrimaryKey"), bucketId);
    }
}
